<?php
$data = getTypeDuAns();
?>
<div itemscope itemtype="" id="crumbs"> <a class="crumbs-home" itemprop="breadcrumb" href="/">Home</a> » <span class="current">Dự Án</span></div>

<?php
foreach ($data as $entry) {
?>

<div class="page-head">
	<h2 class="page-title"><a style="color:#17445F" href="/du-an/danhmuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html">Trang chuyên mục <span> <?php echo($entry[1]); ?></span></a></h2>
    <!--<a class="rss-cat-icon ttip" title="Feed Subscription" href="/du-an/danhmuc/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[1]))); ?>.html">Feed Subscription</a>-->
    <div class="stripe-line"></div>
    <div class="clear"></div>
    <div class="archive-meta"></div>
</div>

<div class="post-listing">
<?php
$newDetail = getDuAnsLimitIndex($entry[0], 0, 6);
foreach ($newDetail as $entry) {
?>
	<article class="item-list">
		<h2><a href="/du-an/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[3]); ?>" rel="bookmark"><?php echo($entry[3]); ?></a></h2>
		<p class="post-meta">
        	<span><?php echo(int_to_date($entry[8])); ?></span>
		</p>
		<div class="post-thumbnail">
			<a href="/du-an/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html" title="<?php echo($entry[1]); ?>" rel="bookmark">
				<img width="168" height="108" src="<?php echo($entry[4]); ?>" class="attachment-thumbnail" alt="<?php echo($entry[3]); ?>" />
			</a>
		</div><!-- post-thumbnail /-->
        
		<div class="entry">
			<p><?php echo($entry[5]); ?> ...			<a class="more-link" href="/du-an/<?php echo($entry[0]); ?>/<?php echo(rewriteTextUrl(stripUnicode($entry[3]))); ?>.html">Chi Tiết &raquo;</a></p>
		</div>
        <div class="clear"></div>
	</article><!-- .item-list -->
<?php 
}
?>	
	<!-- .item-list -->
	
</div>
<?php 
}
?>